package secondkill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import secondkill.pojo.TGoods;
import secondkill.vo.GoodsVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Dzy
 * @since 2022-01-19
 */
@Mapper
@Repository
public interface TGoodsMapper extends BaseMapper<TGoods> {
    /**
     * 获取商品列表
     * @return java.util.List<secondkill.vo.GoodsVo>
     * @create 2022/1/20 12:41
     */
    List<GoodsVo> findGoodsVo();

    /**
     * 获取商品列表
     * @return java.lang.String
     * @create 2022/1/20 12:41
     * @param goodsId
     */
    GoodsVo findGoodsVoByGoodsID(Long goodsId);
}
